package com.xl98.service;

import com.xl98.entity.GroupsMsgContent;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xl98.entity.MsgContent;
import com.xl98.mapper.GroupsMsgContentMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ls
 * @since 2020-05-15
 */
public interface GroupsMsgContentService extends IService<GroupsMsgContent> {
    List<MsgContent> selectByGroupsId(String groupsId);
    List<MsgContent> selectByGroupsIdUserId(String groupsId, String userId);

    GroupsMsgContent selectByMsgId(String msgId);
    boolean insert(GroupsMsgContent groupsMsgContent);
    boolean deleteByGroupsIdMsgId(String groupsId, String msgId);

}
